File: Submakefile

package info (click to toggle)
linuxcnc 1%3A2.9.7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 285,604 kB
  • sloc: python: 202,568; ansic: 109,036; cpp: 99,239; tcl: 16,054; xml: 10,631; sh: 10,303; makefile: 1,255; javascript: 138; sql: 72; asm: 15
file content (37 lines) | stat: -rw-r--r-- 1,172 bytes parent folder | download | duplicates (3)
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
35
36
37
# Prepare tests to run even when separated from the rest of
# the sources

userspace:  test-inputs

PERSONALITIES_MOD_COMPS = \
    $(patsubst %,../tests/halcompile/personalities_mod/%_test.comp,\
    lincurve logic bitslice)
$(PERSONALITIES_MOD_COMPS): ../tests/halcompile/personalities_mod/%_test.comp: \
		hal/components/%.comp
	$(ECHO) Copying test input $<
	$(Q)sed $< -e "1 s/$(*)/$(*)_test/" > $@


../tests/halcompile/serial-out-of-tree/mesa_uart_test.comp: \
		hal/drivers/mesa_uart.comp
	sed $< -e "1 s/mesa_uart/mesa_uart_test/" > $@

../tests/halcompile/userspace/rand_test.comp: \
		../docs/src/hal/rand.comp
	sed $< -e "1 s/rand/rand_test/" > $@

../tests/uspace/spawnv-root/rtapi.conf: ../scripts/rtapi.conf
	cp $< $@

test-inputs:  $(PERSONALITIES_MOD_COMPS) \
	../tests/halcompile/serial-out-of-tree/mesa_uart_test.comp \
	../tests/halcompile/userspace/rand_test.comp \
	../tests/uspace/spawnv-root/rtapi.conf

clean:  test-inputs-clean

test-inputs-clean:
	rm -f $(PERSONALITIES_MOD_COMPS) \
	    ../tests/halcompile/serial-out-of-tree/mesa_uart_test.comp \
	    ../tests/halcompile/userspace/rand_test.comp \
	    ../tests/uspace/spawnv-root/rtapi.conf