This repository was archived by the owner on Jun 6, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +12
-26
lines changed Expand file tree Collapse file tree 5 files changed +12
-26
lines changed Original file line number Diff line number Diff line change @@ -6,23 +6,10 @@ DISTCLEAN = extra.mk buildsys.mk config.log config.status atheme-services.pc
6
6
-include buildsys.mk
7
7
8
8
# explicit dependencies need to be expressed to ensure parallel builds don't die
9
- pre-recurse : include/serno.h include/hooktypes.h
10
- pre-depend : pre-recurse
11
- libathemecore : $(LIBMOWGLI )
9
+ libathemecore : include $(LIBMOWGLI )
12
10
modules : libathemecore
13
11
src : libathemecore
14
12
15
- include/serno.h :
16
- @revh=; \
17
- if [ -d .git ]; then \
18
- revh=` git log -1 --pretty=oneline | cut -d' ' -f1 2> /dev/null` || : ; \
19
- fi ; \
20
- if [ -z " $$ revh" ] && [ ! -r include/serno.h ]; then \
21
- revh=` sed -ne ' s/^node: \(............\).*/\1/p' .hg_archival.txt 2> /dev/null` || : ; \
22
- [ -n " $$ revh" ] || revh=unknown; \
23
- fi ; \
24
- [ -z " $$ revh" ] || echo " #define SERNO \" $$ revh\" " > include/serno.h
25
-
26
13
install-extra :
27
14
@echo " ----------------------------------------------------------------"
28
15
@echo " >>> Remember to cd to ${prefix} and edit your config file." ;
57
44
hg manifest | awk ' { print "$(DISTNAME)/"$$1; } END { print "$(DISTNAME)/configure"; print "$(DISTNAME)/aclocal.m4"; print "$(DISTNAME)/include/sysconf.h.in"; print "$(DISTNAME)/include/serno.h"; }' | $(TAR ) -chnzf $(DISTNAME ) .tar.gz -T /dev/stdin
58
45
$(RM ) $(DISTNAME )
59
46
60
- include/hooktypes.h : ${SRCDIR}/libathemecore/mkhooktypes.sh ${SRCDIR}/libathemecore/hooktypes.in
61
- (cd libathemecore && touch .depend && ${MAKE} ../include/hooktypes.h)
62
-
63
47
buildsys.mk :
64
48
@echo " Run ./configure first you idiot."
65
49
@exit 1
Original file line number Diff line number Diff line change @@ -2,7 +2,8 @@ include ../extra.mk
2
2
3
3
SUBDIRS = inline protocol
4
4
5
- DISTCLEAN = serno.h
5
+ DISTCLEAN = hooktypes.h serno.h
6
+ pre-depend : ${DISTCLEAN}
6
7
7
8
INCLUDES = \
8
9
abirev.h \
@@ -58,4 +59,13 @@ INCLUDES = \
58
59
uplink.h \
59
60
users.h
60
61
62
+ hooktypes.h :
63
+ $(info Generate: $@ )
64
+ @sh mkhooktypes.sh hooktypes.in > hooktypes.h
65
+
66
+ serno.h :
67
+ $(info Generate: $@ )
68
+ @revh=` git log -1 --pretty=oneline | cut -d' ' -f1 2> /dev/null` || : ; \
69
+ [ -z " $$ revh" ] || echo " #define SERNO \" $$ revh\" " > serno.h
70
+
61
71
include ../buildsys.mk
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change @@ -65,17 +65,9 @@ SRCS = ${BASE_SRCS} version.c
65
65
include ../buildsys.mk
66
66
include ../extra.mk
67
67
68
- .c.c.dep : ../include/hooktypes.h ../include/serno.h
69
-
70
68
CPPFLAGS += $(MOWGLI_CFLAGS ) $(PCRE_CFLAGS ) -I../include -DBINDIR=\"$(bindir ) \"
71
69
CFLAGS += $(LIB_CFLAGS )
72
70
LIBS += $(MOWGLI_LIBS ) $(PCRE_LIBS ) $(LIBINTL )
73
71
LDFLAGS += $(LDFLAGS_RPATH )
74
72
75
73
build : depend all
76
-
77
- ../include/hooktypes.h : mkhooktypes.sh hooktypes.in
78
- sh mkhooktypes.sh hooktypes.in > ../include/hooktypes.h
79
-
80
- ../include/serno.h :
81
- (cd ..; ${MAKE} include/serno.h)
You can’t perform that action at this time.
0 commit comments