forked from Ledest/e2fsimage
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
35 lines (26 loc) · 778 Bytes
/
Makefile
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
#
# vi: set sw=4 ts=4:
#
# $Id: Makefile,v 1.14 2006/01/12 20:22:32 chris2511 Exp $
#
######################################################################
SUBDIRS=src man
all: Local.mak
install: all
all install clean:
for x in $(SUBDIRS); do $(MAKE) CFLAGS="$(CFLAGS)" -C $$x $@ ||exit 1; done
Local.mak: configure
./$<
distclean: clean
rm -f Local.mak
TAG=$(shell echo "VERSION.$(TVERSION)" |sed "s/\./_/g" )
STAG=$(shell echo "$(TVERSION)" |sed "s/\-.*//")
TARGET=e2fsimage-$(STAG)
dist:
test ! -z "$(TVERSION)"
rm -rf $(TARGET)
cvs export -r $(TAG) -d $(TARGET) e2fsimage && \
tar -zc --exclude debian -f $(TARGET).tar.gz $(TARGET) && \
ln $(TARGET).tar.gz e2fsimage_$(STAG).orig.tar.gz
cd $(TARGET) && dpkg-buildpackage -rfakeroot
.PHONY: $(SUBDIRS)