File: Common.mk

package info (click to toggle)
ale-clone 1.15pre16.3-1
  • links: PTS
  • area: contrib
  • in suites: potato
  • size: 2,432 kB
  • ctags: 3,217
  • sloc: ansic: 37,483; sh: 1,105; makefile: 343
file content (51 lines) | stat: -rw-r--r-- 886 bytes parent folder | download
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
46
47
48
49
50
51
##
##	A clone of a famous game.
##
##	Common.mk        -       Common make (GNU Make)
##
##	(c) Copyright 1998 by Lutz Sammer
##
##	$Id: Common.mk,v 1.7 1999/05/04 17:00:30 root Exp $
##

all:	$(OBJS)

doc:	$(OBJS:.o=.doc)

clean::
	$(RM) $(OBJS) core *.doc

clobber: clean
	$(RM) depend

depend::
	@echo -n >.depend
	@for i in $(OBJS:.o=.c) ; do $(CC) -MM $(GLIB) $(IFLAGS) $$i >>.depend ; done

tags::
	@for i in $(OBJS:.o=.c) ; do\
	cd .. ;\
	ctags $(CTAGSFLAGS) $(TAGS) $(MODULE)/$$i ;\
	cd $(MODULE) ;\
	done

ci::
	ci -l $(OBJS:.o=.c) Makefile

lockver::
	$(LOCKVER) $(OBJS:.o=.c) Makefile

distlist::
	echo >>$(DISTLIST)
	@for i in `echo $(OBJS:.o=.c)` ; do \
	echo src/$(MODULE)/$$i >>$(DISTLIST) ; done
	echo src/$(MODULE)/Makefile >>$(DISTLIST)

$(OBJS): $(TOPDIR)/Rules.make

#
#	include dependency files they exist
#
ifeq (.depend,$(wildcard .depend))
include .depend
endif