summaryrefslogtreecommitdiffstats
path: root/Makefile.am
blob: f99a09971e25cc92dcc477959f5f47871f6f5529 (plain)
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
INCLUDES = -I@includedir@

.c.o:
	$(COMPILE) -c $<

bin_PROGRAMS = e2cp
e2cp_SOURCES = copy.c copy.h \
	e2tools.c e2tools.h \
	elist.c elist.h \
	ln.c ln.h \
	ls.c ls.h \
	mkdir.c mkdir.h \
	mv.c mv.h \
	progress.c progress.h \
	read.c read.h \
	rm.c rm.h \
	tail.c tail.h \
	util.c util.h \
	write.c write.h
e2cp_LDADD = -L@libdir@ -lext2fs -lcom_err
EXTRA_DIST = README TODO e2tools.spec

install-exec-hook:
	$(LN_S) -f e2cp $(DESTDIR)$(bindir)/e2ln
	$(LN_S) -f e2cp $(DESTDIR)$(bindir)/e2ls
	$(LN_S) -f e2cp $(DESTDIR)$(bindir)/e2mkdir
	$(LN_S) -f e2cp $(DESTDIR)$(bindir)/e2mv
	$(LN_S) -f e2cp $(DESTDIR)$(bindir)/e2rm
	$(LN_S) -f e2cp $(DESTDIR)$(bindir)/e2tail

uninstall-hook:
	$(RM) -f $(DESTDIR)$(bindir)/e2ln
	$(RM) -f $(DESTDIR)$(bindir)/e2ls
	$(RM) -f $(DESTDIR)$(bindir)/e2mkdir
	$(RM) -f $(DESTDIR)$(bindir)/e2mv
	$(RM) -f $(DESTDIR)$(bindir)/e2rm
	$(RM) -f $(DESTDIR)$(bindir)/e2tail