File: Makefile

package info (click to toggle)
nec 2-4
  • links: PTS
  • area: main
  • in suites: potato
  • size: 1,128 kB
  • ctags: 1,638
  • sloc: fortran: 8,502; makefile: 121; sh: 10
file content (45 lines) | stat: -rw-r--r-- 1,211 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#############################################################
# Top Level NEC Makefile                                    #
# (C) 1999 Alan Bain <alanb@chiark.greenend.org.uk>         #
# Under GPL licence                                         #
#############################################################

RM= rm -f
# Things to pass to all makes
MAKEDEFS =
#INSTALL = /usr/bin/install -o root -g root -c
INSTALL = /usr/bin/install -o root -g root 
INSTALL_PROGRAM = $(INSTALL) -m 0755 -s
INSTALL_MAN = $(INSTALL) -m 0644
DESTDIR = 
BINDIR = $(DESTDIR)/usr/bin
MANDIR = $(DESTDIR)/usr/man/man1

SUBDIRS= somnec nec
#default target
all: Makefile all-recursive

all-recursive:
	for subdir in $(SUBDIRS); do \
	  (cd $$subdir && $(MAKE) $(MAKEDEFS) all) || exit 1; \
        done

install:
	$(INSTALL_PROGRAM) nec/nec2 $(BINDIR) 
	$(INSTALL_PROGRAM) somnec/somnec $(BINDIR)

installman:
	$(INSTALL_MAN) nec/nec2.1 $(MANDIR)/nec2.1
	$(INSTALL_MAN) somnec/somnec.1 $(MANDIR)/somnec.1


clean:	clean-recursive clean-local

clean-local:
	$(RM) *~

clean-recursive:
	for subdir in $(SUBDIRS); do \
	  target=`echo $@ | sed 's/-recursive//'`; \
	  (cd $$subdir && $(MAKE) $(MAKEDEFS) $$target) || exit 1; \
   	done