File: Makefile.in

package info (click to toggle)
cruft 0.9.6-0.3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 648 kB
  • ctags: 34
  • sloc: ansic: 642; sh: 179; makefile: 66; perl: 64
file content (43 lines) | stat: -rw-r--r-- 868 bytes parent folder | download | duplicates (3)
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
# Makefile for cruft

CC     = @CC@
CFLAGS = @CFLAGS@ -Wall -W -ansi -pedantic-errors

INS = install

DATADIRS = filters explain

DESTDIR = `pwd`/debian/tmp

PROGS1 = canonical filter_shell merge_diff readlinks
PROGS2 = dash-search
PROGS  = $(PROGS1) $(PROGS2)

all : $(PROGS)

.c :
	$(CC) $(CFLAGS) $(LDFLAGS) $< -o $@

install1 : $(PROGS1) extrafiles
	$(INS) $^ $(DESTDIR)/usr/lib/cruft/

install2 : $(PROGS2)
	$(INS) $< $(DESTDIR)/usr/bin/$<

installdirs : $(DATADIRS)
	cp -af $^ $(DESTDIR)/usr/lib/cruft/

install : install1 install2 installdirs cruft extrafiles
	$(INS) cruft $(DESTDIR)/usr/sbin/cruft
	$(INS) extrafiles $(DESTDIR)/usr/lib/cruft/filters/cruft

clean : 
	rm -f $(PROGS) *~ debian/*~

distclean : clean
	rm -f Makefile config.cache config.status config.log

devclean : configclean
	rm -f configure

.PHONY : all clean configclean distclean install