Skip to content

Commit 43c905f

Browse files
committed
rename_device: Remove rename_device functionality
Functionality of rename_device will be moved to a better suited place. It will be also reworked using rust. New, reworked rename_device source code will be placed inside systemd/udev.
1 parent c28529c commit 43c905f

3 files changed

Lines changed: 1 addition & 408 deletions

File tree

src/Makefile

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,17 @@ CC = gcc
2121
CFLAGS += $(RPM_OPT_FLAGS) -Wall -D_GNU_SOURCE -fPIE
2222
LDFLAGS += $(RPM_LD_FLAGS) -pie -z relro -z now
2323

24-
PROGS = consoletype genhostid rename_device usernetctl usleep
24+
PROGS = consoletype genhostid usernetctl usleep
2525

2626
all: $(PROGS)
2727

2828
install: all
2929
install -m 0755 -d $(DESTDIR)$(bindir)
3030
install -m 0755 -d $(DESTDIR)$(sbindir)
31-
install -m 0755 -d $(DESTDIR)$(libdir)/udev
3231
install -m 0755 build/usleep $(DESTDIR)$(bindir)
3332
install -m 0755 build/consoletype $(DESTDIR)$(sbindir)
3433
install -m 0755 build/genhostid $(DESTDIR)$(sbindir)
3534
install -m 0755 build/usernetctl $(DESTDIR)$(sbindir)
36-
install -m 0755 build/rename_device $(DESTDIR)$(libdir)/udev
3735

3836
clean:
3937
rm -f build/*
@@ -52,13 +50,6 @@ build/genhostid.o: genhostid.c
5250
$(CC) $(CFLAGS) -c -o $@ $^
5351

5452

55-
rename_device: build/rename_device.o
56-
$(CC) $(LDFLAGS) -o build/$@ $^ `pkg-config glib-2.0 --libs`
57-
58-
build/rename_device.o: rename_device.c
59-
$(CC) $(CFLAGS) -c -o $@ $^ `pkg-config glib-2.0 --cflags`
60-
61-
6253
usernetctl: build/usernetctl.o
6354
$(CC) $(LDFLAGS) -o build/$@ $^
6455

0 commit comments

Comments
 (0)