Skip to content

Commit

Permalink
rename_device: Remove rename_device functionality
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jamacku committed Mar 23, 2022
1 parent c28529c commit 43c905f
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 408 deletions.
11 changes: 1 addition & 10 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,17 @@ CC = gcc
CFLAGS += $(RPM_OPT_FLAGS) -Wall -D_GNU_SOURCE -fPIE
LDFLAGS += $(RPM_LD_FLAGS) -pie -z relro -z now

PROGS = consoletype genhostid rename_device usernetctl usleep
PROGS = consoletype genhostid usernetctl usleep

all: $(PROGS)

install: all
install -m 0755 -d $(DESTDIR)$(bindir)
install -m 0755 -d $(DESTDIR)$(sbindir)
install -m 0755 -d $(DESTDIR)$(libdir)/udev
install -m 0755 build/usleep $(DESTDIR)$(bindir)
install -m 0755 build/consoletype $(DESTDIR)$(sbindir)
install -m 0755 build/genhostid $(DESTDIR)$(sbindir)
install -m 0755 build/usernetctl $(DESTDIR)$(sbindir)
install -m 0755 build/rename_device $(DESTDIR)$(libdir)/udev

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


rename_device: build/rename_device.o
$(CC) $(LDFLAGS) -o build/$@ $^ `pkg-config glib-2.0 --libs`

build/rename_device.o: rename_device.c
$(CC) $(CFLAGS) -c -o $@ $^ `pkg-config glib-2.0 --cflags`


usernetctl: build/usernetctl.o
$(CC) $(LDFLAGS) -o build/$@ $^

Expand Down
Loading

0 comments on commit 43c905f

Please sign in to comment.