File: Makefile

package info (click to toggle)
sdc 1.0.8beta-8
  • links: PTS
  • area: contrib
  • in suites: slink
  • size: 1,400 kB
  • ctags: 874
  • sloc: lisp: 8,120; ansic: 967; makefile: 671; perl: 136; sh: 50
file content (41 lines) | stat: -rw-r--r-- 1,144 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
#			    -*-makefile-*-

MKDIR=mkdir -p
CP=cp
MAKE=make

install: # install (usually to be called from upper dir. Makefile)
	$(MAKE) -e e.dir DIRECTORY=$(DD)/rc
	$(CP) `find * ! -path "CVS" ! -name "*~" -print` $(DD)/rc

clean:	# remove redundant files
	@touch core
	rm -f `find . \( -name "*~" -o -name core \) -print`

clobber: # remove all generated files (did I catch all?)
clobber: clean
	#rm -f $(NONSOURCE)

purge:	# same as clean & removes files containing only "deleted"
purge:  clean
	@$(ECHO) -n deleted	>deleted7
	@$(ECHO) deleted	>deleted8
	@rm -f `find . \
	       \( \( -size 8c -exec cmp -s {} deleted8 \; \)	\
	       -o \( -size 7c -exec cmp -s {} deleted7 \; \) \)	\
	       -print`
	@echo purged

wipe:	# use: make wipe file=<file> # prepares file for purge
	mv -f $(file) $(file)~
	echo deleted >$(file)

e.dir:
	@if [ ! -d $(DIRECTORY) ];\
	then $(MKDIR) $(MKDIROPT) $(DIRECTORY) ; else true; fi

help:	# Help on make targets
	@echo Warning! Targets in this Makefile are intented to be called
	@echo from the Makefile in the upper directory!
	@echo ------------------------------
	-@egrep "^[A-Za-z\._]+::?.*#" [Mm]akefile