root/trunk/Makefile.in

Revision 75, 1.4 kB (checked in by tibob, 6 years ago)

- pid configurable through command line [RC, looking at Loic Tortay's patch for pid configurable through configfile]
- various minor fixes [LT, RC]

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1#
2# Makefile for ipfm
3# Copyright (c) 1999-2002 Robert CHERAMY <robert@cheramy.net>
4# Copyright (c) 2001 Loïc Tortay & IN2P3 Computing Center <tortay@cc.in2p3.fr>
5#
6
7include ./Makefile.common
8
9all: binary docs
10
11binary: Makefile source/Makefile
12        @cd source && $(MAKE) && cd ..
13
14docs: Makefile doc/Makefile
15        @cd doc && $(MAKE) && cd ..
16
17install: all
18        $(INSTALL) -d -m 755 $(SBINDIR)
19        $(INSTALL) -m 555 source/ipfm $(SBINDIR)/ipfm
20        $(INSTALL) -d -m 755 $(ETCDIR)
21        [ -f $(CONFIGFILE) ] || \
22          $(INSTALL) -m 644 ipfm.conf.sample $(CONFIGFILE)
23        $(INSTALL) -d -m 755 $(MANDIR)/man5
24        $(INSTALL) -d -m 755 $(MANDIR)/man8
25        $(INSTALL) -m 444 doc/ipfm.conf.5 $(MANDIR)/man5/ipfm.conf.5
26        $(INSTALL) -m 444 doc/ipfm.8 $(MANDIR)/man8/ipfm.8
27        $(INSTALL) -d -m 755 $(LOGDIR)/ipfm
28        $(INSTALL) -d -m 755 $(VARRUNDIR)
29
30clean:
31        @cd source && $(MAKE) clean && cd .. && \
32          cd doc && $(MAKE) clean && cd ..
33
34distclean: clean
35        $(RM) config.cache config.log config.status \
36          Makefile Makefile.common *~ core \
37          source/Makefile source/*~ source/core source/config.h \
38          source/missing/Makefile doc/Makefile doc/*~
39
40configdump:
41        @echo "Configuration:" && \
42        echo "   ipfm is in               @sbindir@" && \
43        echo "   man pages are in         @mandir@" && \
44        echo "   configuration file is    $(CONFIGFILE)" && \
45        echo "   pid file is              $(PIDFILE)" && \
46        echo "   log files are            $(LOGFILE)"
47
Note: See TracBrowser for help on using the browser.