File: Makefile

package info (click to toggle)
architecture-properties 0.2.6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 72 kB
  • sloc: sh: 108; ansic: 30; makefile: 20
file content (15 lines) | stat: -rw-r--r-- 541 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# SPDX-License-Identifier: GPL-2.0-or-later
WRAPPER=$(DEB_HOST_GNU_TYPE)-cross-exe-wrapper
all:$(WRAPPER) cross-exe-wrapper.1 cross-exe-test
$(WRAPPER):cross-exe-wrapper.in
	sed \
		-e 's/#DEB_HOST_ARCH#/$(DEB_HOST_ARCH)/g' \
		-e 's/#DEB_HOST_MULTIARCH#/$(DEB_HOST_MULTIARCH)/g' \
		$< > $@
	chmod +x $@
cross-exe-wrapper.1:cross-exe-wrapper.in
	pod2man --name cross-exe-wrapper $< > $@
cross-exe-test:cross-exe-test.c
	$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $<
clean:
	$(RM) -- *-cross-exe-wrapper cross-exe-wrapper.1 cross-exe-test