File: rules

package info (click to toggle)
loadlin 1.6f-6
  • links: PTS
  • area: main
  • in suites: buster
  • size: 764 kB
  • sloc: asm: 3,823; ansic: 401; makefile: 76; sh: 16
file content (31 lines) | stat: -rwxr-xr-x 646 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
28
29
30
31
#!/usr/bin/make -f

%:
	dh $@

BUILD_DATE=$(shell dpkg-parsechangelog --show-field Date)

BYHAND ?= no

override_dh_auto_build:
	make -C src/srclinux
	(cd src; ytasm /b loadlin.asm, ../loadlin.exe )
	gzip -cv9n loadlin.exe >loadlin.exe.gz
	$(CC) $(CFLAGS) initrd/freeramdisk.c -o freeramdisk

override_dh_auto_clean:
	dh_auto_clean
	$(MAKE) -C src/srclinux clean
	$(MAKE) -C initrd clean

override_dh_installchangelogs:
	dh_installchangelogs doc/changes

override_dh_install:
	dh_install
ifeq ($(BYHAND),yes)
	cp loadlin.exe ..
	dpkg-distaddfile loadlin.exe byhand -
	cp doc/manual.txt ../loadlin.txt
	dpkg-distaddfile loadlin.txt byhand -
endif