chiark / gitweb /
dump control command
[inn-innduct.git] / include / Makefile
1 ##  $Id: Makefile 6326 2003-05-05 21:47:43Z rra $
2 ##
3 ##  Currently just handles creation of the automatically generated header
4 ##  files.  Eventually, rules for installing INN's header files will go
5 ##  here.
6
7 include ../Makefile.global
8
9 top           = ..
10
11 ALL           = inn/system.h inn/version.h
12
13 EXTRA         = config.h paths.h
14
15 PUBLIC        = config.h conffile.h dbz.h inndcomm.h libinn.h nntp.h ov.h \
16                 paths.h storage.h
17
18 all: $(ALL) $(EXTRA)
19
20 clean:
21         rm -f $(ALL)
22
23 clobber distclean: clean
24         rm -f $(EXTRA)
25
26 depend tags ctags:
27
28 profiled: all
29
30 $(EXTRA) $(FIXSCRIPT):
31         @echo Run configure before running make.  See INSTALL for details.
32         @exit 1
33
34
35 ##  Build rules.
36
37 inn/system.h: config.h $(top)/support/mksystem
38         $(top)/support/mksystem $(AWK) config.h > $@
39
40 inn/version.h: $(top)/support/mkversion $(top)/Makefile.global
41         $(top)/support/mkversion '$(VERSION)' '$(VERSION_EXTRA)' > $@
42
43
44 ##  Installation rules.
45
46 install:
47         for F in $(PUBLIC) ; do \
48             $(CP_RPUB) $$F $D$(PATHINCLUDE)/$$F ; \
49         done
50         $(top)/support/install-sh $(OWNER) -m 0755 -d $D$(PATHINCLUDE)/inn
51         for F in inn/*.h ; do \
52             $(CP_RPUB) $$F $D$(PATHINCLUDE)/$$F ; \
53         done