Skip to content

Commit

Permalink
added dist target
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.osgeo.org/gdal/trunk@2971 f0d54148-0727-0410-94bb-9a71ac55c965
  • Loading branch information
warmerdam committed Feb 21, 2002
1 parent e379b94 commit 08e6cc6
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions frmts/bsb/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
GDAL_ROOT = ../..

VERSION = 1.0

include $(GDAL_ROOT)/GDALmake.opt

OBJ = bsb_read.o bsbdataset.o

DISTDIR = bsb-$(VERSION)

default: $(OBJ)

Expand All @@ -25,3 +28,17 @@ install-obj: $(foreach file,$(OBJ),../o/$(file))
../o/%.o: %.o
cp $*.o ../o

dist:
rm -rf $(DISTDIR)
mkdir $(DISTDIR)
cp *.cpp *.c *.h $(DISTDIR)
rm $(DISTDIR)/bsbdataset.cpp
cp Makefile.dist $(DISTDIR)/Makefile
cp $(GDAL_ROOT)/port/{cpl_error*,cpl_port*,cpl_string*} $(DISTDIR)
cp $(GDAL_ROOT)/port/{cpl_vsisimple.cpp,cpl_config.h.in} $(DISTDIR)
cp $(GDAL_ROOT)/port/{cpl_vsi.h,cpl_conv.*,cpl_path.cpp} $(DISTDIR)
cp $(GDAL_ROOT)/port/cpl_config.h.in $(DISTDIR)/cpl_config.h
rm $(DISTDIR)/*.o
tar czf $(DISTDIR).tar.gz $(DISTDIR)
zip -r $(DISTDIR).zip $(DISTDIR)

0 comments on commit 08e6cc6

Please sign in to comment.