1 # fmtools Makefile - just the basics for now
6 INSTALL
= /usr
/bin
/install
8 # Since fmtools doesn't use configure, these paths are provided here
9 # to make packaging easier. Just override them when doing 'make install'.
11 BINPATH
= $(DESTDIR
)/usr
/local
/bin
13 MANPATH
= $(DESTDIR
)/usr
/local
/man
/man1
21 $(CC
) $(CFLAGS
) -o fm fm.c
-lm
24 $(CC
) $(CFLAGS
) -o fmscan fmscan.c
-lm
27 rm -f
*~
*.o
$(TARGETS
)
29 install: all install-bin install-man
32 if
(test ! -d
$(BINPATH
)); \
34 mkdir
-p
$(BINPATH
); \
36 for f in
$(TARGETS
) ; do \
37 $(INSTALL
) -m
$(BINMODE
) $$f $(BINPATH
); \
41 if
(test ! -d
$(MANPATH
)); \
43 mkdir
-p
$(MANPATH
); \
45 for f in
$(TARGETS
) ; do \
46 $(INSTALL
) -m
$(MANMODE
) $$f.1 $(MANPATH
); \
50 mknod
/dev
/radio0 c
81 64
51 ln
-s
/dev
/radio0
/dev
/radio