File: Makefile

package info (click to toggle)
pev 0.81-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 2,976 kB
  • sloc: ansic: 20,529; xml: 558; makefile: 432; sh: 397; python: 40
file content (27 lines) | stat: -rw-r--r-- 693 bytes parent folder | download | duplicates (2)
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
LIBPE_DIR = lib/libpe
PEV_DIR = src
VERSION = 0.81
ZIPDIR = pev-$(VERSION)-win
ZIPFILE = $(ZIPDIR).zip

all:
%:
	cd $(LIBPE_DIR) && $(MAKE) $@
	cd $(PEV_DIR) && $(MAKE) $@

# Cygwin only
zip:
	cd $(PEV_DIR)/windows && $(MAKE)
	mkdir -p $(ZIPDIR)/plugins
	cp src/build/plugins/*.dll $(ZIPDIR)/plugins/
	echo -ne "plugins_dir=plugins\r\n" > $(ZIPDIR)/pev.conf
	cp $(PEV_DIR)/userdb.txt $(ZIPDIR)
	cp lib/libpe/libpe.dll $(ZIPDIR)/
	cp /usr/bin/cygwin1.dll $(ZIPDIR)/
	cp /usr/bin/cygcrypto-1*.dll $(ZIPDIR)/
	cp /usr/bin/cygz.dll $(ZIPDIR)/
	cp README.md $(ZIPDIR)/
	cp $(PEV_DIR)/build/*.exe $(ZIPDIR)/
	cp $(PEV_DIR)/windows/run.bat $(ZIPDIR)/
	zip -r $(ZIPFILE) $(ZIPDIR)/*
	rm -rf $(ZIPDIR)